/**
 * Created by Chen Sanjin on 20/11/18.
 */

/**
 * @param {array} str
 * @returns {string}
 * 将数据对象转换成字符串
 */
export function arrayString (strArray) {
  let str = ''
  if (strArray instanceof Array) {
    strArray.forEach(function (item, index) {
      str += item + ','
    })
    return str.substring(0, str.length - 1)
  } else {
    return strArray
  }
}
